package com.probiz.estoresa.system.web.action;

import java.util.Map;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.validation.BindException;
import org.springframework.web.servlet.ModelAndView;

import com.probiz.estore.common.model.system.PaymentHistory;
import com.probiz.estore.core.controller.GenericStoreAdminController;
import com.probiz.estore.system.service.PaymentHistoryManager;


public class PaymentHistoryController extends GenericStoreAdminController<PaymentHistory> {
    private PaymentHistoryManager paymentHistoryManager = null;
    public void setPaymentHistoryManager(PaymentHistoryManager paymentHistoryManager) {
        this.paymentHistoryManager = paymentHistoryManager;
    }
   
    public ModelAndView defaultAction(HttpServletRequest request,
                                      HttpServletResponse response){
		return super.defaultAction(request, response);
    }    

	@Override
	protected String getEntityName(PaymentHistory entity) {
		return String.valueOf(entity.getPaymentGatewayId());
	}


	@Override
	protected void initController() throws Exception {
		this.mgr = paymentHistoryManager;
	}

	@Override
	protected void preSave(HttpServletRequest request, PaymentHistory entity, BindException errors) {
		
	}    
  	  	
        
}
